Repository navigation
feat: detect_linter_config 由 languages.json 派生 (v0.6.5) - #13
Merged
Merged
Conversation
M8 改进 env_check.py 的 SessionStart 盘点:每种语言的 linter 配置文件路径 从硬编码常量 LINTER_CONFIG_FILES(仅 4 语言)改为从 languages.json 读取 新字段 linter_config_files。注册表新增 4 条语言(java/rust/typescript/python) 的字段值;其它语言保持空数组(向后兼容)。 变更: - hooks/env_check.py:删 LINTER_CONFIG_FILES 常量 + 加 REGISTRY import + detect_linter_config body 改为迭代 REGISTRY - scripts/languages.json:4 条已迁移语言的 linter_config_files 字段 - scripts/validate_languages_json.py:_check_linter_config_files 新规则 - tests/test_validate_languages_json.py:+2 反例 - spec: registry-driven-config (2 Requirements) 已合入 行为不变:现有 4 语言下 env_check 输出与 v0.6.4 完全一致;其它语言 继续不报告(向后兼容)。 校验:unittest 26/26 + run_all 141/141/0 + validator 0 errors + diff clean 实现定位: - env_check.detect_linter_config: hooks/env_check.py:43 - languages.json 字段路径:scripts/languages.json java/rust/typescript/python - 校验规则:scripts/validate_languages_json.py:_check_linter_config_files
This was referenced Sep 22, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Why
MEDIUM #8: 原 LINTER_CONFIG_FILES 仅覆盖 4 语种;新增语言需同步改 env_check。
现由 registry 驱动,加语言时只需填字段。
Verification